notebook: Use the right padding for inactive tabs
authorBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 06:48:36 +0000 (08:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 06:48:36 +0000 (08:48 +0200)
gtk/gtknotebook.c

index 6ab853ac48f2485cc3f3153d44b896558e941aeb..2abea22e4cabbf04a6a4cf793d081867197b786b 100644 (file)
@@ -5910,16 +5910,18 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook  *notebook,
             {
             case GTK_POS_TOP:
               page->allocation.y += padding.top;
-              /* fall through */
-            case GTK_POS_BOTTOM:
               page->allocation.height = MAX (1, page->allocation.height - padding.top);
               break;
+            case GTK_POS_BOTTOM:
+              page->allocation.height = MAX (1, page->allocation.height - padding.bottom);
+              break;
             case GTK_POS_LEFT:
               page->allocation.x += padding.left;
-              /* fall through */
-            case GTK_POS_RIGHT:
               page->allocation.width = MAX (1, page->allocation.width - padding.left);
               break;
+            case GTK_POS_RIGHT:
+              page->allocation.width = MAX (1, page->allocation.width - padding.right);
+              break;
             }
         }